package com.xzj.common.core.domain.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: xzj-common
 * @ClassName: BaseTreeEntity
 * @description: 基础数性结构实体
 * @author: XiaZunJun
 * @create: 2024-06-26 09:00
 */
@Data
public class BaseTreeEntity<T> {

    private String id;

    private String parentId;
    /**
     * 子节点
     */
    private List<T> children = new ArrayList<>();

}
